//
//  PAVerificationCodeViewController.m
//  PAMobileWallet
//
//  Created by Pay_SMP002 on 13-7-4.
//  Copyright (c) 2013年 平安付. All rights reserved.
//

#import "PAVerificationCodeViewController.h"
#import "PublicDefine.h"
#import "PAVerificationCodeView.h"

#import "PAHomePageViewController.h"
#import "PAPersonalViewController.h"

@interface PAVerificationCodeViewController ()

@end

@implementation PAVerificationCodeViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self)
    {
        self.title = @"验证码";

        verificationCodeView = [[PAVerificationCodeView alloc] initWithFrame:RECT_PHONE];
        verificationCodeView.parentController = self;
        self.view = verificationCodeView;
    }
    return self;
}

- (void)testNext:(id)sender
{
    NSArray *controllers = [self.navigationController viewControllers];
    for (PABaseViewController *controller in controllers)
    {
        if ([controller isKindOfClass:[PAPersonalViewController class]])
        {
            personalViewController = (PAPersonalViewController *)controller;
            //[personalViewController checkUpOrDown:@"down"];
            [self.navigationController popToViewController:personalViewController animated:YES];
        }
    }
}

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
